#include "Graph.h"

void GraphHelper::genRandom( Graph& graph, int vsize, int esize ) {
	typedef boost::variate_generator< boost::mt19937, boost::uniform_int<> > gen_type;
	boost::mt19937 generator( 1u );
	boost::uniform_int<> uni_dist(0, 5000);
	gen_type gen( generator, uni_dist );
	generate_random_graph<Graph, gen_type>( graph, vsize, esize, gen, false, false );
	
	Vertex v;
	for(int i = 0; i < (int)num_vertices( graph ); ++i ) {
		v = vertex( i, graph );
		graph[v].id = i;
	}

	//print_graph( graph, get( &VertexProp::id, graph ) );
}
